﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Threading;
namespace ViberBS
{
    public partial class Calibrate : Form
    {
        public Calibrate()
        {
            InitializeComponent();
        }
        int xd, yd,xn,yn, xc, yc, xt, yt, xs, ys;

        private void button2_Click(object sender, EventArgs e)
        {
            Thread.Sleep(2000);
            xc = Cursor.Position.X;
            yc = Cursor.Position.Y;
            MessageBox.Show("Captured !");
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Thread.Sleep(2000);
            xd = Cursor.Position.X;
            yd = Cursor.Position.Y;
            MessageBox.Show("Captured !");
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Thread.Sleep(2000);
            xt = Cursor.Position.X;
            yt = Cursor.Position.Y;
            MessageBox.Show("Captured !");
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Thread.Sleep(2000);
            xs = Cursor.Position.X;
            ys = Cursor.Position.Y;
            MessageBox.Show("Captured !");
        }

        private void button5_Click(object sender, EventArgs e)
        {
            Form1 frm = new Form1(xd, yd,xn,yn, xc, yc, xt, yt, xs, ys);
            frm.Show();
        }

        private void button6_Click(object sender, EventArgs e)
        {
            Thread.Sleep(2000);
            xn = Cursor.Position.X;
            yn = Cursor.Position.Y;
            MessageBox.Show("Captured !");
        }
    }
}
